package com.my.controller;


import com.my.model.User;
import com.my.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wxq
 * @since 2020-06-13
 */
@RestController
@RequestMapping("/my/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("www")
    public User get(){
        return userService.getById(1l);
    }

}

